import java.text.DateFormat
import java.util.Date

import commons.utils.DateUtils
import org.joda.time.DateTime

object dataDemo {
  def main(args: Array[String]): Unit = {


//      val date: Date = DateFormat.getDateInstance.parse("1617098110535")
    val timeTamp = 1617098110535L
    val date: Date = new Date(1617098110535L)
    val str: String = DateUtils.formatDateKey(date)
    val time = new DateTime(date).toString("yyyyMMdd HH-mm-dd")
    println(date)
    println(str)
    println(time)
  }
}
